
function getPageUrl() {
	var url = window.location.href,
		pindex = url.indexOf('?');
	if (pindex >= 0)
		url = url.substr(0, pindex);
	return url;
}

function getPageFolder() {
	var url = window.location.href,
		pindex = url.lastIndexOf('/');

	url = url.substr(0, pindex);
	return url;
}
function getRootPath_dc() {
	var pathName = window.location.pathname.substring(1);
	var webName = pathName == '' ? '' : pathName.substring(0, pathName.indexOf('/'));
	if (webName == "")
		return window.location.protocol + '//' + window.location.host;
	else 
		return window.location.protocol + '//' + window.location.host + '/' + webName;
}
var pageConfig = {

	vrUrl: getPageUrl(),
	folderUrl: getPageFolder(),
	lcServerUrl: getPageFolder(),
	barrage: {
		use: true,	//使用弹幕
		ele: '.barrage_box',//'.ysyPlayer_box'
	},
	downCount: {
		use: true,	//使用倒计时
		ele: '#count_down',
		toDate: '2018/03/27 20:00:00',
	},
	debug: false,
}

//长安服务器相关
var caServer = {
	//数据url
	dataurl: 'http://e.changan.com.cn/changan_dealers/api.php?appkey=212C9F1F9C02A967352C0935DD9CDA20',
	//提交url
	suburl: 'http://www.changan.com.cn/api.php?op=try&aid=414',
}

var base = {
	//<script type="text/javascript" src="http://localhost/CoolCarCA/index.php/SpecialActivity/getData/id/2"></script>
	//hbConfigUrl: 'http://localhost/CoolCarCA/index.php/SpecialActivity/getData/id/2',
	pmUrls: [//插件模块URL
		'http://static.easyvaas.com/sdk/h5/player/ysyPlayer-1.2.min.js',
		'http://static.easyvaas.com/sdk/h5/chat/ysyChat-1.1.min.js',
		'plugins/hongbao/hbcss.css',
		'plugins/hongbao/hongbaoyuActivity.js',
		'plugins/barrage/barrage.js',
		'http://localhost/CoolCarCA/index.php/SpecialActivity/getData/id/2',
	],
	initModule: function() {//初始化模块
		
	}
}
